package com.mhh.selary.backend.dto.project;

import com.mhh.sdk.beans.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author mhh
 * @date 2020-09-14 16:38:19
 */
@Getter
@Setter
@ApiModel("保存项目入参")
public class ProjectSaveDTO extends BaseDTO {

    @ApiModelProperty(value = "id(新建不传，修改必传)")
    private Long id;

    @ApiModelProperty(value = "项目名称")
    @NotEmpty(message = "项目名称不能为空")
    @Length(max = 16, message = "项目名称不能超过16个字符")
    private String projectName;

    @ApiModelProperty(value = "项目权限(1:public 2:private)")
    private Integer projectScope;
}
